package com.sjlh.centurylianhua.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sjlh.centurylianhua.entity.PurchaseLogInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface PurchaseLogInfoMapper extends BaseMapper<PurchaseLogInfo> {

    @Select("select purchase_log_info.*, product.name productName from purchase_log_info, product"+" ${ew.customSqlSegment} ")
    List<PurchaseLogInfo> getInfo(@Param("ew") QueryWrapper<PurchaseLogInfo> wrapper);


}
